/
pyproject.toml
46 lines (38 loc) · 1.04 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
[tool.poetry]
name = "{{cookiecutter.__project_slug}}"
version = "0.1.0"
description = "{{cookiecutter.short_description}}"
authors = ["{{cookiecutter.author}}"]
license = "MPL-2.0"
readme = "README.md"
[tool.poetry.dependencies]
python = "^{{cookiecutter.min_python_version}}"
[tool.black]
line-length = 88
[tool.pytest.ini_options]
xfail_strict = true
[tool.coverage.run]
parallel = true
branch = true
source = ["src/{{cookiecutter.__package_name}}/"]
[tool.ruff]
select = [
"E", "W", # pycodestyle
"F", # pyflakes
"I", # isort
"PLC", "PLE", # pylint
"UP", # pyupgrade
"TCH", # flake8-type-checking
]
ignore = [
"E501", # let black handle line-length
]
target-version = "py{{cookiecutter.__min_tox_python_version}}"
[tool.ruff.isort]
known-first-party = ["{{cookiecutter.__package_name}}"]
[tool.pyright]
include = ["src/{{cookiecutter.__package_name}}"]
reportUnknownParameterType = "error"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"